//
//  YWReportTroubleModel.h
//  maintain
//
//  Created by 烟雨云渊 on 17/3/2.
//  Copyright © 2017年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YWMission.h"

@class YWEquipmentType;
@class YWLocation;
@class YWFloor;
@class YWApartment;
@class YWBuilding;
@class YWHandler;

@class YWEquipment;
@class YWTroubleMissionModel;
@class YWEquipmentSystemType;

typedef NS_ENUM(NSUInteger, YWReportTroubleType) {
    YWReportTroubleTypeEwinApp = 0, //从手机app端
    YWReportTroubleTypeWeChat = 1, //微信报障
    YWReportTroubleTypeWebSite = 2, //网页报障
};

@interface YWReportTroubleModel : NSObject

/**是否上传失败*/
@property (nonatomic, assign) BOOL uploadFail;
/**是否已读 完成后判断*/
@property (nonatomic, assign) BOOL read;

/* 报障单ID */
@property (nonatomic, assign) NSInteger troubleId;
/* 报障单编号 */
@property (nonatomic, copy) NSString* troubleSequence;
/* 故障设备二维码ID */
@property (nonatomic, copy) NSString* qrcodeId;
/* 设备类型 */
@property (nonatomic, strong) YWEquipmentType * equipmentType;
/* 设备位置 */
@property (nonatomic, strong) YWLocation *location;
/* 楼层信息 */
@property (nonatomic, strong) YWFloor * floor;
/* 楼栋信息 */
@property (nonatomic, strong) YWApartment * apartment;
/* 楼盘对象 */
@property (nonatomic, strong) YWBuilding * building;
/* 报障人 */
@property (nonatomic, strong) YWHandler * reporter;
/* 报障时间 */
@property (nonatomic, assign) NSTimeInterval reportTime;
/* 现场图片信息 */
@property (nonatomic, strong) NSArray* pictures;
/* 报障描述 */
@property (nonatomic, copy) NSString* note;
/* 取消故障单的备注 */
@property (nonatomic, copy) NSString *cancelNote;
/* 故障单状态 */
@property (nonatomic, assign) YWTroubleMissionStatus troubleStatus;
/* 故障来源 */
@property (nonatomic, assign) YWReportTroubleType channel;
/**微信报障人对象*/
@property (nonatomic, strong) YWTroubleContact *troubleContact;
/* 自定义属性 */
@property (nonatomic, strong) NSArray * equipmentFields;
/* 设备信息 */
@property (nonatomic, strong) YWEquipment *equipment;
/* 流转信息 (数组)*/
@property (nonatomic, strong) NSArray *circulationInfos;
/* 维修任务信息 */
@property (nonatomic, strong) YWTroubleMissionModel* troubleMission;
/* 维修结果 */
@property (nonatomic, strong) NSArray *records;
/**维保类型ID*/
@property (nonatomic, assign) YWMaintenanceType maintenanceTypeId;
/**后台区分报障的唯一标识符*/
@property (nonatomic, copy) NSString *uniqueTag;
/**@的人集合,任务参与人*/
@property (nonatomic, strong) NSArray *observers;
/**@的人的id串*/
@property (nonatomic, copy) NSString *observerIds;
/** 报障类别Id */
@property (nonatomic, assign) NSInteger systemTypeId;
@property (nonatomic, strong) YWEquipmentSystemType * equipmentSystemType;
@end
